<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      box-sizing: border-box;
      padding: 0;
      margin: 0;
    }

    .header-container {
      width: 100%;
      height: 2rem;
      background-color: red;
    }

    .main-container {
      padding: 2rem 0;
      background-color: #eee;
    }

    .slider-container {
      height: 9.15rem;
      background-color: green;
    }

    .nav-container {
      height: 8.475rem;
      background-color: blue;
    }

    .recommend-container {
      height: 50.0rem;
      background-color: pink;
    }

    .tabbar-container {
      height: 2.15rem;
      background-color: black;
    }

    html,
    body {
      width: 100%;
      height: 100%;
    }

    .header-container,
    .tabbar-container {
      position: fixed;
      left: 0;
      z-index: 1000;
      width: 100%;
    }

    .header-container {
      top: 0;
    }

    .tabbar-container {
      bottom: 0;
    }
  </style>
  <script>
    // setRemUnit();
    // window.addEventListener('resize', setRemUnit)
    // function setRemUnit() {
    //   var docEL = document.documentElement
    //   var ratio = 18.75
    //   var viewWidth = docEL.getBoundingClientRect().width || window.innerHeight;
    //   docEL.style.fontSize = viewWidth / ratio + 'px'
    // }
  </script>
  <script src="js/simple.js"></script>
</head>

<body>
  <div class="header-container"></div>
  <div class="main-container">
    <div class="slider-container"></div>
    <div class="nav-container"></div>
    <div class="recommend-container"></div>
  </div>
  <div class="tabbar-container"></div>
</body>

</html>